<%--
  Created by IntelliJ IDEA.
  User: Iray
  Date: 2017/8/20
  Time: 20:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script>
    function countDown(secs,surl){
//alert(surl);
        var jumpTo = document.getElementById('jumpTo');
        jumpTo.innerHTML=secs;
        if(--secs>0){
            setTimeout("countDown("+secs+",'"+surl+"')",1000);
        }
        else
        {
            document.forms["back"].submit();
        }
    }
</script>

<div id="main">
    <!-- Thread Start -->
    <div class="t" style="margin-bottom:0px; border-bottom:0">
        <table cellspacing="0" cellpadding="0" width="100%">
            <tr>
                <th class="h">
                    <strong class="fl w">发表成功</strong>
                </th>
            </tr>
        </table>
    </div>

    <div class="t t2">
        <table cellspacing="0" cellpadding="0" width="100%" style="table-layout:fixed;border-top:0">
            <tr class="tr1">
                <th>
                    <p><span id="jumpTo">5</span>秒后转跳回原来页面</p>
                    <script type="text/javascript">countDown(5,'<c:url value="activityMain"/>');</script>
                    <form name="back" action="activityMain" method="post">
                        <input type="hidden" name="activityId" value="${activityId}"/>
                        <%--<a onclick="submit()" type="submit" href='<c:url value="activityMain"/>'>回到刚刚回复的帖子</a>--%>
                        <button  type="submit" class="btn btn-success btn-lg btn-block" name="submitButton" onclick="submit()">回到刚刚回复的帖子</button>
                    </form>>
                </th></tr>
        </table>
    </div>
</div>
